<%--
  Created by IntelliJ IDEA.
  User: yang
  Date: 7/21/20
  Time: 17:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EL 测试</title>
</head>
<body>

<%-- 在响应头中添加 cookie --%>
<%
    response.setHeader("Set-cookie","c1=c1Value");
    Cookie c2 = new Cookie("c2", "c2Value");
    response.addCookie(c2);

    response.setHeader("Accept","MyAccept1");
    response.setHeader("Accept","MyAccept2");

%>

</body>
</html>
